import request from "@/utils/request.js"

export default {
    // /product/
    // 向后端请求分类列表数据
    getCategoryList(data = {}) {
        return request({
            url: "/api/product/getCategory",
            method: "POST",
            data: data,
        })
    },
    // 向后端请求全部商品数据
    getAllProduct(data = { "categoryID": [], "currentPage": 1, "pageSize": 35 }) {
        return request({
            url: "/api/product/getAllProduct",
            method: "POST",
            data: data,
        })
    },
    // 向后端请求分类商品数据
    getProductByCategory(data = {}) {
        return request({
            url: "/api/product/getProductByCategory",
            method: "POST",
            data: data,
        })
    },
}